package com.kason.consumer;

import com.kason.framework.Remote;
import com.kason.framework.factory.ProxyFactory;
import com.kason.producer.api.KasonInterface;

/**
 * @author 卢清波
 * @date 2021/2/19 19:02
 */
public class Consumer
{
    public static void main(String[] args)
    {
        KasonInterface KasonInterface = ProxyFactory.getProxy(KasonInterface.class);
        Remote remote = new Remote("我是主机",1223);
        String hello = KasonInterface.hello(remote);
        System.out.println(hello);
    }
}
